package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.StrategyCatalog;
import cn.wolfcode.wolf2w.query.DestinationQuery;
import cn.wolfcode.wolf2w.query.StrategyCatalogQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IStrategyCatalogService {
    void insert(StrategyCatalog strategyCatalog);

    void delete(String id);

    void update(StrategyCatalog strategyCatalog);

    StrategyCatalog findById(String id);

    List<StrategyCatalog> findAll();

    Page<StrategyCatalog> query(StrategyCatalogQuery qo, String parentId);

    /**
     * 修改攻略分类的状态为禁用
     * @param id
     */
    void updateStateById(String id);

    /**
     * 查询状态正常的全部分类
     * @return
     */
    List findByState();

    /**
     * 根据destId查询相关攻略分类
     * @param destId
     * @return
     */
    List<StrategyCatalog> findByDestId(String destId);
}